]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dbusServices: Allow to persist services via environment
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 9 Feb 2022 18:46:37 +0000 (19:46 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 10 Feb 2022 13:14:45 +0000 (13:14 +0000)
Auto-shutdown prevents debugging a service with tools like
d-feet, so allow turning it off with an environment variable.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2169>

js/dbusServices/dbusService.js

index 3e2fde06afcf4392f5c888675babb082a6b9a247..8b6a0a119c10a9ea514afa2eaf419942018838d2 100644 (file)
@@ -90,6 +90,9 @@ var ServiceImplementation = class {
         if (!this._autoShutdown)
             return;
 
+        if (GLib.getenv('SHELL_DBUS_PERSIST'))
+            return;
+
         if (this._holdCount > 0)
             return;